<%-- <%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>



<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Loja Grupo</title>
</head>
<body>

	



	<form action="ServLogin" method="post">

		Nome:<input type="text" name="login" value="<%if(session.getAttribute("valLogin") != null){ %><%=session.getAttribute("valLogin") %><%}; %>"   /><span style="color: red;">
			<%
				if (session.getAttribute("login") == "erro") {
			%>Você deve digitar um valor neste campo! <%
				}
				if (session.getAttribute("login") == "erro2") {
			%>Login inválido<%
				}
			%>
		</span><br /> Senha:<input type="password" name="senha" value="<%session.getAttribute("valSenha"); %>"><span
			style="color: red;">
			<%
				if (session.getAttribute("senha") == "erro") {
			%>Você deve digitar um valor neste campo! <%
				}
				if (session.getAttribute("senha") == "erro2") {
				%>Senha Inválida <%
					}
			%>
		</span><br /> <input type="submit" name="enviar" /> <input type="reset"
			name="Limpar" value="Limpar" />

	</form>


</body>
</html> --%>




<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<!--[if IE 8]><html lang="en" class="ie8"></html><![endif]-->
<!--[if IE 9]><html lang="en" class="ie9"></html><![endif]-->
<!--[if !IE]><!-->
<html lang="pt-br">
<!--<![endif]-->
<head>
	<meta charset="utf-8" />
	<title>E Commerce</title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="E Commerce - Trabalho Fábrica de Software" name="description" /><meta content="" name="author" />
	<link href="./assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
	<link href="./assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
	<link href="./css/style.min.css" rel="stylesheet" />
	<link href="./css/style_responsive.css" rel="stylesheet" />
	<link href="./css/style_default.css" rel="stylesheet" id="style_color" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body id="login-body">
 
	<div class="login-header">
		<div id="logo" class="center">
			<img src="./img/logo.png" alt="logo" class="center" />
		</div>
	</div>
	<div id="login">
		
		<form id="loginform" class="form-vertical no-padding no-margin" action="ServLogin" method="post"/>
		<div class="lock">
			<i class="icon-lock"></i>
		</div>
		<div class="control-wrap">
			<h4>Faça seu Login</h4>
			<div class="control-group">
				<div class="controls">
					<div class="input-prepend">
						<span class="add-on">
							<i class="icon-user"></i>
						</span>
						<input id="input-username" type="text" value="<%if(session.getAttribute("valLogin") != null){ %><%=session.getAttribute("valLogin") %><%}; %>"   placeholder="Usuário" name="login"/>
							
							<%
								if (session.getAttribute("login") == "erro") {
							%><h6 class="alert alert-error"><button class="close" data-dismiss="alert" >x</button> Você deve digitar um valor neste campo!</h6>
							
							
							 <%
								}
								if (session.getAttribute("login") == "erro2") {
							%><h6 class="alert alert-error"><button class="close" data-dismiss="alert" >x</button>Login inválido</h6><%
								}
							%>
						
					</div>
				</div>
			</div>
			<div class="control-group">
				<div class="controls">
					<div class="input-prepend">
						<span class="add-on">
							<i class="icon-key"></i>
						</span>
						<input id="input-password" type="password" placeholder="Senha" name="senha"  value="<%session.getAttribute("valSenha"); %>"/> 
					
			
			<%
				if (session.getAttribute("senha") == "erro") {
			%><h6 class="alert alert-error"><button class="close" data-dismiss="alert" >x</button> Você deve digitar um valor neste campo! </h6> <%
				}
				if (session.getAttribute("senha") == "erro2") {
				%><h6 class="alert alert-error"><button class="close" data-dismiss="alert" >x</button> Senha Inválida</h6> <%
					}
			%>
		
		
		
					</div>
					<div class="mtop10">
					<div class="block-hint pull-left small">
						<input type="checkbox" id="" /> Lembrar informações </div>
						<div class="block-hint pull-right"><a href="javascript:;" class="" id="forget-password">Esqueci minha senha</a></div>
					</div>
					<div class="clearfix space5"></div>
				</div>
			</div>
		</div>
		<input type="submit" id="login-btn" class="btn btn-block login-btn" value="Login" /><input type="reset" id="login-btn" class="btn btn-block btn-primary " value="Limpar" />
	</form>
	
		
		<form id="forgotform" class="form-vertical no-padding no-margin hide" action="index.html" />
		<p class="center">Informe o endereço de e-mail cadastrado para resetar a sua senha.</p><div class="control-group"><div class="controls">
		<div class="input-prepend">
			<span class="add-on"><i class="icon-envelope"></i></span>
			<input id="input-email" type="text" placeholder="Email" />
	</div>
	</div>
		<div class="space20"></div></div><input type="button" id="forget-btn" class="btn btn-block login-btn" value="Enviar" />
	</form>
	</div>
		<div id="login-copyright"> 2013 &copy; E Commerce. </div>
		<script src="./js/jquery-1.8.3.min.js"></script>
		<script src="./assets/bootstrap/js/bootstrap.min.js"></script><script src="./js/jquery.blockui.js"></script>
		<script src="./js/scripts.js"></script><script>jQuery(document).ready(function(){App.initLogin()});</script>
	</body>
	</html>